﻿using System;

class IsThirdDigitSeven
{
    static void Main()
    {
        int number;

        Console.WriteLine("Type number to check if third digit is seven:");
        bool isParseSuccess=int.TryParse(Console.ReadLine(), out number);
        bool isSeven;

        if (isParseSuccess)
        {
            if ((number/100)%10==7)
            {
                isSeven = true;
            }
            else
            {
                isSeven = false;
            }

            Console.WriteLine("It is {0} that the third digit is seven!",isSeven);
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}